﻿namespace AnyOffice.Model
{
    using System;

    public class BookInfoData
    {
        protected object __Open;
        protected object _aMT;
        protected object _area;
        protected object _attachmentId;
        protected object _author;
        protected int _bookId = -1;
        protected string _bookName = string.Empty;
        protected string _bookNo = string.Empty;
        protected object _brief;
        protected object _deptId;
        protected object _inputPerson;
        protected object _iSBN;
        protected int _lend;
        protected object _memo;
        protected object _photo;
        protected object _price;
        protected object _pubDate;
        protected object _pubHouse;
        protected int _typeId;

        public string _Open
        {
            get
            {
                return (string) this.__Open;
            }
            set
            {
                this.__Open = value;
            }
        }

        public bool _OpenIsNull
        {
            get
            {
                return (this.__Open == null);
            }
            set
            {
                if (value)
                {
                    this.__Open = null;
                }
            }
        }

        public int AMT
        {
            get
            {
                return (int) this._aMT;
            }
            set
            {
                this._aMT = value;
            }
        }

        public bool AMTIsNull
        {
            get
            {
                return (this._aMT == null);
            }
            set
            {
                if (value)
                {
                    this._aMT = null;
                }
            }
        }

        public string Area
        {
            get
            {
                return (string) this._area;
            }
            set
            {
                this._area = value;
            }
        }

        public bool AreaIsNull
        {
            get
            {
                return (this._area == null);
            }
            set
            {
                if (value)
                {
                    this._area = null;
                }
            }
        }

        public string AttachmentId
        {
            get
            {
                return (string) this._attachmentId;
            }
            set
            {
                this._attachmentId = value;
            }
        }

        public bool AttachmentIdIsNull
        {
            get
            {
                return (this._attachmentId == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentId = null;
                }
            }
        }

        public string Author
        {
            get
            {
                return (string) this._author;
            }
            set
            {
                this._author = value;
            }
        }

        public bool AuthorIsNull
        {
            get
            {
                return (this._author == null);
            }
            set
            {
                if (value)
                {
                    this._author = null;
                }
            }
        }

        public int BookId
        {
            get
            {
                return this._bookId;
            }
            set
            {
                this._bookId = value;
            }
        }

        public string BookName
        {
            get
            {
                return this._bookName;
            }
            set
            {
                this._bookName = value;
            }
        }

        public string BookNo
        {
            get
            {
                return this._bookNo;
            }
            set
            {
                this._bookNo = value;
            }
        }

        public string Brief
        {
            get
            {
                return (string) this._brief;
            }
            set
            {
                this._brief = value;
            }
        }

        public bool BriefIsNull
        {
            get
            {
                return (this._brief == null);
            }
            set
            {
                if (value)
                {
                    this._brief = null;
                }
            }
        }

        public int DeptId
        {
            get
            {
                return (int) this._deptId;
            }
            set
            {
                this._deptId = value;
            }
        }

        public bool DeptIdIsNull
        {
            get
            {
                return (this._deptId == null);
            }
            set
            {
                if (value)
                {
                    this._deptId = null;
                }
            }
        }

        public string InputPerson
        {
            get
            {
                return (string) this._inputPerson;
            }
            set
            {
                this._inputPerson = value;
            }
        }

        public bool InputPersonIsNull
        {
            get
            {
                return (this._inputPerson == null);
            }
            set
            {
                if (value)
                {
                    this._inputPerson = null;
                }
            }
        }

        public string ISBN
        {
            get
            {
                return (string) this._iSBN;
            }
            set
            {
                this._iSBN = value;
            }
        }

        public bool ISBNIsNull
        {
            get
            {
                return (this._iSBN == null);
            }
            set
            {
                if (value)
                {
                    this._iSBN = null;
                }
            }
        }

        public int Lend
        {
            get
            {
                return this._lend;
            }
            set
            {
                this._lend = value;
            }
        }

        public string Memo
        {
            get
            {
                return (string) this._memo;
            }
            set
            {
                this._memo = value;
            }
        }

        public bool MemoIsNull
        {
            get
            {
                return (this._memo == null);
            }
            set
            {
                if (value)
                {
                    this._memo = null;
                }
            }
        }

        public byte[] Photo
        {
            get
            {
                return (byte[]) this._photo;
            }
            set
            {
                this._photo = value;
            }
        }

        public bool PhotoIsNull
        {
            get
            {
                return (this._photo == null);
            }
            set
            {
                if (value)
                {
                    this._photo = null;
                }
            }
        }

        public string Price
        {
            get
            {
                return (string) this._price;
            }
            set
            {
                this._price = value;
            }
        }

        public bool PriceIsNull
        {
            get
            {
                return (this._price == null);
            }
            set
            {
                if (value)
                {
                    this._price = null;
                }
            }
        }

        public DateTime PubDate
        {
            get
            {
                return (DateTime) this._pubDate;
            }
            set
            {
                this._pubDate = value;
            }
        }

        public bool PubDateIsNull
        {
            get
            {
                return (this._pubDate == null);
            }
            set
            {
                if (value)
                {
                    this._pubDate = null;
                }
            }
        }

        public string PubHouse
        {
            get
            {
                return (string) this._pubHouse;
            }
            set
            {
                this._pubHouse = value;
            }
        }

        public bool PubHouseIsNull
        {
            get
            {
                return (this._pubHouse == null);
            }
            set
            {
                if (value)
                {
                    this._pubHouse = null;
                }
            }
        }

        public int TypeId
        {
            get
            {
                return this._typeId;
            }
            set
            {
                this._typeId = value;
            }
        }
    }
}

